package com.haiya.decorator.basic;

public class ConcreteDecorator1 extends Decorator {
    public ConcreteDecorator1(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        addedFunction();
    }

    public void addedFunction() {
        System.out.println("具体装饰器1(ConcreteDecorator1)的附加功能");
    }
}
